﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Sprout.Core.Attributes
{
    public class ExcelWriteAttribute : Attribute
    {
        public ExcelWriteAttribute(string columnName)
        {
            this.ColumnName = columnName;
        }

        /// <summary>
        /// excel列名
        /// </summary>
        public string ColumnName { get; }
        private int columnWidth = 20;
        /// <summary>
        /// 列宽
        /// </summary>
        public int ColumnWidth
        {
            get { return columnWidth; }
            set { columnWidth = value; }
        }
        /// <summary>
        /// 顺序，用于生成excel时使用
        /// </summary>
        public int Sort { get; set; }


    }
}
